<%@ page language="java" pageEncoding="UTF-8"%>
<%
String rootPath = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+rootPath+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <base href="<%=basePath%>">
    <title></title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="<%=rootPath%>/resources/css/default.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript">
	var time = 5; //时间,秒
	function reLogin(){
		top.location.replace("<%=rootPath%>/toLogin.do");
	}
	var i = 0;
	function dis(){
	    document.all.showid.innerHTML = "页面还剩" + (time - i) + "秒跳转登录页面";
	    i++;
	}
	timer = setInterval('dis()', 1000);//显示时间
	timer = setTimeout('reLogin()', time * 1000); //跳转
	</script>
  </head>
  
  <body>
    <h3>由于您长时间未操作，或者网络出现问题，为保证安全，自动退出系统，请您重新登录。</h3>
    <span id="showid" style="color: red"></span><br><br>
    <a href="javascript: reLogin();">重新登录</a>
  </body>
</html>
